package com.itheima.goods.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("tb_goods")
public class GoodsEntity {

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    @TableField("goods_name")
    private String goodsName;

    @TableField("price")
    private int price;

    @TableField("stock_num")
    private int stockNum;

    @TableField("sale_num")
    private int saleNum;
}
